#include <iostream>
#include <memory>
#include "PollServer.hpp"
int main(int argv,char * argc[]){
    if(argv!=2){
        std::cout<<"Usage:\t"<<argc[0]<<" port"<<std::endl;
        exit(1);
    }
    u_int16_t  localport=std::stoi(argc[1]);
    std::unique_ptr<PollServer> svr=std::make_unique<PollServer>(localport);

    svr->Init();
    svr->Loop();
    return 0;
}